﻿<?php
include("inc/global.inc");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站留言-<?=$m_row['m_cname']?><?php if($m_row['catalog_id2']){echo "专业$m_row[catalog_2]产品供应商。";}?></title>
<meta name="description" content="网站留言，<?php if($m_row['c_mainpro']){echo $m_row['c_mainpro']."，";}?><?=$m_row['m_cname']?><?php if($m_row['catalog_id2']){echo "专业$m_row[catalog_2]产品供应商。";}?>"/>
<meta name="keywords" content="网站留言，<?php if($m_row['catalog_id2']){echo "$m_row[catalog_2]，";}?><?php if($m_row[catalog_id1]){echo "$m_row[catalog_1]，";}?><?php if($m_row['c_mainpro']){echo $m_row['c_mainpro']."，";}?><?=$m_row['m_cname']?>" />
<link href="/template/<?=$template?>/css/allcss.css" rel="stylesheet" type="text/css" />
<link href="/template/css/template.css" rel="stylesheet" type="text/css" />
<link href="/template/css/top1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php include("inc/top1.php")?>
<div class="main">
<?php include("inc/top2.php")?>
<div class="path size11"><a href="../index.html">首页</a> >> 网站留言</div>
<div class="left">
<?php include("inc/left.php")?>
</div>

<div class="right">

<div class="rightbox">
  <div class="profile">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="2" class="tables">
<form name="form1" method="post" action="/template/inquire.php" onSubmit="return check()">
<input name="inquire_subject" type="hidden" value="网站留言">
<input type="hidden" name="inquire_act" value="ok">
  <tr valign="top">
    <td height="30" align="center" valign="middle">留言内容<strong>:</strong></td>
    <td width="88%" height="30" align="left" valign="top"><textarea name="inquire_content" rows="8" cols="50" id="inquire_content"></textarea></td>
  </tr>
      <tr>
      <td height="25" align="right">联系人：</td>
      <td><input name="inquire_name" type="text" size="20" maxlength="20" id="inquire_name" /> <font color="#FF0000">*</font></td>
    </tr>
    <tr>
      <td height="25" align="right">联系电话：&nbsp;</td>
      <td><input name="inquire_tel" type="text" size="20" maxlength="20" id="inquire_tel" /> <font color="#FF0000">*</font></td>
    </tr>
    <tr>
      <td height="25" align="right">邮箱：</td>
      <td><input name="inquire_email" type="text" size="30" maxlength="200"  id="inquire_email"/></td>
    </tr>
    <tr>
      <td height="25" align="right">QQ/MSN：</td>
      <td><input name="inquire_qq" type="text" size="25" maxlength="200" id="inquire_qq" /></td>
    </tr>
    <tr>
      <td height="25" align="right">联系地址：</td>
      <td><input name="inquire_addr" type="text" size="40" maxlength="250" id="inquire_addr" /> <font color="#FF0000">*</font></td>
    </tr>
  <tr>
    <td colspan="2" style="padding-left:35px;">验证码：
      <input name="c_code" type="text" class="input" size="8" maxlength="6" id="c_code" />
    &nbsp;&nbsp;<img src="/inc/code.php" name="img" align="absmiddle" id="img">&nbsp;<a href="#" name="can not see" id="test">刷新</a></td>
  </tr>
        <tr>
          <td height="55" align="right">　
            <input type="hidden" name="to_id" value="<?=$m_row[id]?>"></td>
          <td height="55" align="left"><input name="submit" type="submit" class="button" value="发送" /></td>
        </tr>
      </form>
    </table>
</div>
    </div>
	<div class="rightbox">
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 728x90, 创建于 11-3-14 */
google_ad_slot = "5638832665";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</div>
<div class="onl"></div>
<div id="mian" class="topside20 downside20 side" align="center">
<script type="text/javascript">/*960*90，创建于2011-3-9*/ var cpro_id = 'u403357';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
<div class="onl"></div>
</div>


<?php include("inc/foot.php");
?>
</div>
</body>
</html>
<script language="javascript">
function $(id){
return document.getElementById(id);
}

function check(){
if($("inquire_content").value==""){
alert("留言内容不能为空");
$("inquire_content").focus();
return false;
}
if($("inquire_name").value==""){
alert("请留下您的姓名");
$("inquire_name").focus();
return false;
}
if($("inquire_tel").value==""){
alert("请留下您的电话或手机");
$("inquire_tel").focus();
return false;
}

if($("inquire_addr").value==""){
alert("请留下您的联系地址");
$("inquire_addr").focus();
return false;
}

}

</script>
